﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Business.Migrations
{
    public partial class demo13 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "SendInfoId",
                table: "SendDetail");

            migrationBuilder.AddColumn<string>(
                name: "SCom",
                table: "SendG",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SDesc",
                table: "SendG",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SIPeo",
                table: "SendG",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SITime",
                table: "SendG",
                type: "datetime2",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<decimal>(
                name: "SPrice",
                table: "SendG",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "SQNum",
                table: "SendG",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SStyle",
                table: "SendG",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "SCom",
                table: "SendG");

            migrationBuilder.DropColumn(
                name: "SDesc",
                table: "SendG");

            migrationBuilder.DropColumn(
                name: "SIPeo",
                table: "SendG");

            migrationBuilder.DropColumn(
                name: "SITime",
                table: "SendG");

            migrationBuilder.DropColumn(
                name: "SPrice",
                table: "SendG");

            migrationBuilder.DropColumn(
                name: "SQNum",
                table: "SendG");

            migrationBuilder.DropColumn(
                name: "SStyle",
                table: "SendG");

            migrationBuilder.AddColumn<Guid>(
                name: "SendInfoId",
                table: "SendDetail",
                type: "uniqueidentifier",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
        }
    }
}
